** HOW TO SET UP PSPAD TO USE WITH RIGS OF RODS **

This archive contains following files needed for comfortable work:

- syntax highlighter settings
- template files for creating .truck and .load files from scratch
- testing environment called Construct (stripped version of original world called Flatworld made by AustinTheGreat)
- compiler settings for checking truck files
- Batch file for one-click testing of your truck and load files

** WHAT ELSE YOU NEED **
- Rigs of Rods installed (preferably in root directory, e.g. c:\Rigs_of_Rods\)
- Rigs of Rods Format Tester - you can download it here: http://wiki.rigsofrods.com/images/3/37/RoRTester-cmdline-win.zip or from wiki.rigsofrods.com
- Tester needs to be unzipped to some directory (e.g. in c:\Rigs_of_Rods_Tools\RoRTester\)

** INSTALLATION **

- unzip archive to temporary directory.
- copy content of extracted PSPad directory to directory, where you have PSPad installed (usually c:\Program Files\pspad editor\)
- copy content of extracted Rigs_of_Rods directory to directory, where you have Rigs of Rods installed.

- open file trucktest.bat using Notepad
- find line containing text 
    set rordir="c:\rigs_of_rods" 
- replace path with your actual Rigs of Rods installation path 
- save file
- copy file to your rigs of rods tools directory (e.g. C:\Rigs_of_Rods_Tools\)

- Open file called ror_pspad.ini using Notepad
  Find line containing text: 
     Compilator File=C:\Rigs_of_Rods_Tools\RoRTester\rortester.exe
  and replace path to your copy of Rigs of rods truck format tester.
  Find line containing text: 
     Prog0=Truck Test,|c:\Rigs_of_Rods_Tools\trucktest.bat| |%Name%%Ext%| %Ext%
  and replace path to your copy of file trucktest.bat. Keep the rest!
- save the file

- find file pspad.ini on your disk (it should be located in c:\Program Files\pspad editor\ )
- MAKE A BACKUP COPY OF PSPAD.INI FILE
- open pspad.ini using Notepad  (DO NOT RUN OR USE PSPAD!!!)
- go to the end of the file
- there is a block of settings headed [<not assigned>]
- add content of ror_pspad.ini file ABOVE that heading
- go to the start of the file
- search for line beginning with UserHighLighterName=     (it should be line #5)
- modify the line so that states UserHighLighterName=rigs of rods
- save pspad.ini

now you can run pspad with new settings

** USAGE **

Now you can edit .truck and .load files directly in PSPAD enjoying syntax highlighter
Pressing CTRL+F9 runs Truck Format Tester. You can read the output in log window
Pressing F9 runs Rigs of Rods and forces the game to use contruct terrain and currently edited truck

** LIMITATIONS **

!!! Do not use this feature for textured trucks or loads, that don't have their textures copied in /data/truck directory of rigs of rods !!!



** BUGTRACKING **

if something gets wrong, try this:

run pspad

under menu Settings/Highlighter settings correct path and enable RIgs of Rods highlighter
on card "Compiler" fix path to rigs of rod truck tester
on card "External application" fix path to trucktest.bat batch file

